<h2>回答管理</h2>

<table border='1'>
	<tr><th>所属问题</th><th>回答内容</th><th>回答者</th><th>回答时间</th><th>采纳</th><th>操作</th></tr>
	<?php foreach ($answers as $answer): ?>
			<tr>
				<td> <?php echo $html->link($answer['Question']['title'], "/questions/view/{$answer['Question']['id']}") ?></td>
				<td><?php echo $html->link($answer['Answer']['body'], "/questions/view/{$answer['Question']['id']}") ?></td>
				<td><?php echo $linker->userLink($answer['User']) ?></td>
				<td><?php echo $answer['Answer']['created'] ?></td>
				<td><?php echo Answer::status($answer) ?></td>
                <td><?php echo $html->link('删除', '/manage/delete_answer'."?id={$answer['Answer']['id']}") ?></td>
			</tr>

	<?php endforeach ?>
</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
|
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>